projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f10417
)
rockchip: clk: rk3128: fix NANDC_PLL_SEL_MASK
author
Philipp Tomsich
<
[email protected]
>
Fri, 1 Dec 2017 23:14:55 +0000
(
00:14
+0100)
committer
Philipp Tomsich
<
[email protected]
>
Fri, 1 Dec 2017 23:27:31 +0000
(
00:27
+0100)
The PLL selector field for NANDC is only 2 bits wide.
This fixes an 'int-overflow on shift' warning.
Fixes: 9246d9e ("rockchip: rk3128: add clock driver")
Signed-off-by: Philipp Tomsich <
[email protected]
>
arch/arm/include/asm/arch-rockchip/cru_rk3128.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/arch-rockchip/cru_rk3128.h
b/arch/arm/include/asm/arch-rockchip/cru_rk3128.h
index cc317dc405eaf2873c7b392f08eb605ea04aa004..3d8317ed91b858701acf6e149e6544ca199db547 100644
(file)
--- a/
arch/arm/include/asm/arch-rockchip/cru_rk3128.h
+++ b/
arch/arm/include/asm/arch-rockchip/cru_rk3128.h
@@
-136,7
+136,7
@@
enum {
/* CRU_CLK_SEL2_CON */
NANDC_PLL_SEL_SHIFT = 14,
- NANDC_PLL_SEL_MASK =
7
<< NANDC_PLL_SEL_SHIFT,
+ NANDC_PLL_SEL_MASK =
3
<< NANDC_PLL_SEL_SHIFT,
NANDC_PLL_SEL_CPLL = 0,
NANDC_PLL_SEL_GPLL,
NANDC_CLK_DIV_SHIFT = 8,